﻿/*
 * 2012-12 zyy
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SRF.UI
{
    /// <summary>
    /// 页面标题
    /// </summary>
    public class ViewTitle : System.Web.Mvc.ActionFilterAttribute
    {
        public ViewTitle(string title)
        {
            this.Title = title;
        }
        public override void OnResultExecuting(System.Web.Mvc.ResultExecutingContext filterContext)
        {
            filterContext.Controller.ViewData["title"] = this.Title;
            base.OnResultExecuting(filterContext);
        }

        public string Title { get; set; }
    }
}